Repository navigation
config: workhorse-weighted - document bare weights keys, fix stale route name (#10725) - #10732
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 23 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
…eights-name # Conflicts: # .opencode/opencode.jsonc
Closes #10725.
Finding: the router looks leaf weights up by BARE id - the keys were right
The watch flagged that in route workhorse-weighted, targets carrying #effort suffixes sat next to bare-id weights keys. A read of the fork router (packages/core/src/config/plugin/model-routes.ts) settles it:
So every leg resolves its configured weight 10, and suffixing the keys to match the targets would BREAK the lookup (10 to silent fallback 1). Per the issue decision tree (suffix the keys, or document that lookup strips efforts), the fix is to document.
Changes (.opencode/opencode.jsonc, workhorse-weighted only)
No targets, weights, values, order, or effort pins changed.
Note: PR #10727 landed while this was in flight
#10727 replaced the Antigravity Sonnet seat in this route with haiku-plan#high (Sonnet moved to workhorse-last-resort), which mooted the Sonnet half of the stale-name fix and rewrote the name line; the merge conflict there was resolved by keeping the #10727 name text and applying the Spark #medium correction to it. The merged weights map covers all four current targets (luna-effort-rr, Spark, Hydrogen, haiku-plan), each at 10 under its bare key - haiku-plan included, keyed bare exactly as the lookup expects.
Guard
All six opencode-config-guard steps pass locally against the merged config (metered-providers fixtures + canonical check, go-seating fixtures, provider-catalog fixtures, route-rules fixtures + canonical check).